import java.util.Stack;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public class TestStack {
    public static void main(String[] args) {
        Stack<String> stack = new Stack<>();
        stack.add("jerry");
        stack.add("tom");
        stack.add("smith");
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
    }
}
